package com.yang.service;

import com.yang.entity.Orders;
import com.yang.dao.OrdersDao;

import java.util.*;

public class OrdersService {
    private final OrdersDao ordersDao = new OrdersDao();

    //查询全部
    public List<Orders> queryOrders() {
        return ordersDao.queryOrders();
    }

    //单个查询
    public Orders queryOrdersById(String id) {
        return ordersDao.queryOrdersById(id);
    }

    //添加
    public int saveOrders(Orders obj) {
        return ordersDao.saveOrders(obj);
    }

    //删除
    public int deleteOrdersById(String id) {
        return ordersDao.deleteOrdersById(id);
    }

    //修改
    public int updateOrdersById(Orders obj) {
        return ordersDao.updateOrdersById(obj);
    }
}
